#!/usr/bin/env node

const pi = Math.PI;

class Circle {
  constructor(radius) {
    this.radius = radius;
  }

  diameter() {
    return 2 * this.radius;
  }

  circumference() {
    return pi * 2 * this.radius;
  }

  area() {
    return pi * this.radius * this.radius;
  }
}

export { Circle };